package cn.codergege.demo.service;

import cn.codergege.demo.dao.from.HzQyhznrRepositoryFrom;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HzQyhznrDataService {
    private final Logger log = LoggerFactory.getLogger(HzQyhznrDataService.class);

    @Autowired
    private HzQyhznrRepositoryFrom hzQyhznrRepositoryFrom;

    public List<cn.codergege.demo.domain.from.HzQyhznr> getFromAll() {
        log.info("获取全部 from_demo.hz_qyhznr 记录...");
        return hzQyhznrRepositoryFrom.findAll();
    }
}
